CC = gcc
CFLAGS = -Wall -g
LDLIBS = -lpcap
PROGS = analyze

all: analyze

analyze: analyze.c
	$(CC) $(CFLAGS) $(LDLIBS) $< -o $@

.PHONY:
graph: analyze
	./get_data.sh
	gnuplot gnu/plot.gnu

.PHONY:
clean:
	@rm -f $(PROGS) a.out *~
